package com.ddz.library.packageManager

import com.ddz.library.JKLibrary

object PackageUtils {
    fun checkInstallAPPByPackage(packageName:String):Boolean{
        return try {
            val packageInfo = JKLibrary.context?.packageManager?.getPackageInfo(packageName,0)
            packageInfo != null
        }catch (e:Exception){
            e.printStackTrace()
            false
        }
    }
}